commit
1fafa6471a
|
@ -652,7 +652,7 @@ ThreadFuture<bool> DLDatabase::blobbifyRange(const KeyRangeRef& keyRange) {
|
|||
db, keyRange.begin.begin(), keyRange.begin.size(), keyRange.end.begin(), keyRange.end.size());
|
||||
|
||||
return toThreadFuture<bool>(api, f, [](FdbCApi::FDBFuture* f, FdbCApi* api) {
|
||||
bool ret = false;
|
||||
FdbCApi::fdb_bool_t ret = false;
|
||||
ASSERT(!api->futureGetBool(f, &ret));
|
||||
return ret;
|
||||
});
|
||||
|
@ -667,7 +667,7 @@ ThreadFuture<bool> DLDatabase::unblobbifyRange(const KeyRangeRef& keyRange) {
|
|||
db, keyRange.begin.begin(), keyRange.begin.size(), keyRange.end.begin(), keyRange.end.size());
|
||||
|
||||
return toThreadFuture<bool>(api, f, [](FdbCApi::FDBFuture* f, FdbCApi* api) {
|
||||
bool ret = false;
|
||||
FdbCApi::fdb_bool_t ret = false;
|
||||
ASSERT(!api->futureGetBool(f, &ret));
|
||||
return ret;
|
||||
});
|
||||
|
|
|
@ -171,7 +171,7 @@ ThreadFuture<bool> ThreadSafeDatabase::unblobbifyRange(const KeyRangeRef& keyRan
|
|||
KeyRange range = keyRange;
|
||||
return onMainThread([=]() -> Future<bool> {
|
||||
db->checkDeferredError();
|
||||
return db->blobbifyRange(range);
|
||||
return db->unblobbifyRange(range);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -368,7 +368,7 @@ struct FdbCApi : public ThreadSafeReferenceCounted<FdbCApi> {
|
|||
fdb_error_t (*futureGetDatabase)(FDBFuture* f, FDBDatabase** outDb);
|
||||
fdb_error_t (*futureGetInt64)(FDBFuture* f, int64_t* outValue);
|
||||
fdb_error_t (*futureGetUInt64)(FDBFuture* f, uint64_t* outValue);
|
||||
fdb_error_t (*futureGetBool)(FDBFuture* f, bool* outValue);
|
||||
fdb_error_t (*futureGetBool)(FDBFuture* f, fdb_bool_t* outValue);
|
||||
fdb_error_t (*futureGetError)(FDBFuture* f);
|
||||
fdb_error_t (*futureGetKey)(FDBFuture* f, uint8_t const** outKey, int* outKeyLength);
|
||||
fdb_error_t (*futureGetValue)(FDBFuture* f, fdb_bool_t* outPresent, uint8_t const** outValue, int* outValueLength);
|
||||
|
|
Loading…
Reference in New Issue