Code

Handle last_update/interval in the core rather than in memstore.
authorSebastian Harl <sh@tokkee.org>
Tue, 13 Oct 2015 19:24:17 +0000 (21:24 +0200)
committerSebastian Harl <sh@tokkee.org>
Tue, 13 Oct 2015 19:24:17 +0000 (21:24 +0200)
commit5cf58d25c37585bdc7aef79cfc899fdf5ba02ef2
tree0dd2ada6e3a2285c1c91e27631519cb00a7d2338
parent637fd9289e84a2eb394d01c4769cbd5276c2b905
Handle last_update/interval in the core rather than in memstore.

For this purpose, let the sdb_plugin_store_* functions fetch the latest
revision of the object to determine the last update interval and last
recorded interval. The memstore now expects both values to be passed in
whenever storing/updating an object.
src/core/memstore.c
src/core/plugin.c
src/include/core/memstore.h
t/unit/core/store_expr_test.c
t/unit/core/store_json_test.c
t/unit/core/store_lookup_test.c
t/unit/core/store_test.c