X-Git-Url: http://git.vrable.net/?a=blobdiff_plain;f=bluesky%2Fstore-multi.c;h=f6009ba48d0584269c43df2a9d2b2bd633fce7d9;hb=388030970805a70cb4fad34ade5e3de7a3607a57;hp=f0b1e5ec9a5dc1e560a8692b2a4464c889ace654;hpb=6e95f90cc53d2a230b9cf22d3b5906a66b4e71de;p=bluesky.git diff --git a/bluesky/store-multi.c b/bluesky/store-multi.c index f0b1e5e..f6009ba 100644 --- a/bluesky/store-multi.c +++ b/bluesky/store-multi.c @@ -42,8 +42,6 @@ static void multistore_completion_handler(BlueSkyStoreAsync *async, { g_mutex_lock(top_async->lock); - g_print("Completed a subrequest for %s\n", async->key); - /* This might be the second request to finish; in that case we don't do * anything. */ if (top_async->status == ASYNC_RUNNING) { @@ -69,7 +67,6 @@ static void multistore_submit(gpointer store, BlueSkyStoreAsync *async) switch (async->op) { case STORE_OP_GET: - g_print("Received multirequest for %s\n", async->key); async->status = ASYNC_RUNNING; async->exec_time = bluesky_now_hires(); for (int i = 0; i < 2; i++) { @@ -107,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) { } @@ -116,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)