projects
/
bluesky.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d89eefe
)
Add a lookup_last method to the multi-store backend.
author
Michael Vrable
<mvrable@cs.ucsd.edu>
Thu, 18 Nov 2010 03:39:00 +0000
(19:39 -0800)
committer
Michael Vrable
<mvrable@cs.ucsd.edu>
Thu, 18 Nov 2010 03:39:00 +0000
(19:39 -0800)
bluesky/store-multi.c
patch
|
blob
|
history
diff --git
a/bluesky/store-multi.c
b/bluesky/store-multi.c
index
5687de7
..
f6009ba
100644
(file)
--- a/
bluesky/store-multi.c
+++ b/
bluesky/store-multi.c
@@
-104,6
+104,12
@@
static void multistore_submit(gpointer store, BlueSkyStoreAsync *async)
}
}
+static char *multistore_lookup_last(gpointer store, const char *prefix)
+{
+ BlueSkyStore *base = (BlueSkyStore *)store;
+ return bluesky_store_lookup_last(base, prefix);
+}
+
static void multistore_cleanup(gpointer store, BlueSkyStoreAsync *async)
{
}
@@
-113,6
+119,7
@@
static BlueSkyStoreImplementation store_impl = {
.destroy = multistore_destroy,
.submit = multistore_submit,
.cleanup = multistore_cleanup,
+ .lookup_last = multistore_lookup_last,
};
void bluesky_store_init_multi(void)