Add a callback for gcs table lookup failures. (#1702)

* Add callback to gcs client for table lookup failures.

* update plasma_manager reflecting changes to gcs callback.
This commit is contained in:
Melih Elibol
2018-03-15 22:25:01 -07:00
committed by GitHub
parent 1f027344f1
commit 3c080f4baa
5 changed files with 46 additions and 13 deletions
@@ -524,6 +524,9 @@ int TableLookup_RedisCommand(RedisModuleCtx *ctx,
RedisModuleString *id = argv[2];
RedisModuleKey *key = OpenPrefixedKey(ctx, "T:", id, REDISMODULE_READ);
if (key == nullptr) {
return RedisModule_ReplyWithNull(ctx);
}
size_t len = 0;
const char *buf = RedisModule_StringDMA(key, &len, REDISMODULE_READ);