Add SqliteKeyValue::set debug.

GitOrigin-RevId: 070b4a7f4a2b652f57165db79ea776ce05c5865e
This commit is contained in:
levlam 2020-05-17 00:23:33 +03:00
parent eb8fba8b28
commit 499241bc9c

View File

@ -64,7 +64,11 @@ Status SqliteKeyValue::drop() {
SqliteKeyValue::SeqNo SqliteKeyValue::set(Slice key, Slice value) { SqliteKeyValue::SeqNo SqliteKeyValue::set(Slice key, Slice value) {
set_stmt_.bind_blob(1, key).ensure(); set_stmt_.bind_blob(1, key).ensure();
set_stmt_.bind_blob(2, value).ensure(); set_stmt_.bind_blob(2, value).ensure();
set_stmt_.step().ensure(); auto status = set_stmt_.step();
if (status.is_error()) {
LOG(FATAL) << "Failed to set \"" << key << '"';
}
// set_stmt_.step().ensure();
set_stmt_.reset(); set_stmt_.reset();
return 0; return 0;
} }