Add a lookup_last method to the multi-store backend.
authorMichael Vrable <mvrable@cs.ucsd.edu>
Thu, 18 Nov 2010 03:39:00 +0000 (19:39 -0800)
committerMichael Vrable <mvrable@cs.ucsd.edu>
Thu, 18 Nov 2010 03:39:00 +0000 (19:39 -0800)
bluesky/store-multi.c

index 5687de7..f6009ba 100644 (file)
@@ -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)