Add SqliteKeyValue::set debug.
GitOrigin-RevId: 070b4a7f4a2b652f57165db79ea776ce05c5865e
This commit is contained in:
parent
eb8fba8b28
commit
499241bc9c
@ -64,7 +64,11 @@ Status SqliteKeyValue::drop() {
|
||||
SqliteKeyValue::SeqNo SqliteKeyValue::set(Slice key, Slice value) {
|
||||
set_stmt_.bind_blob(1, key).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();
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user