From 89d7cc1093c5c61d1a99a9f3296e0cd6772bd4f5 Mon Sep 17 00:00:00 2001 From: Balachandar Namasivayam Date: Thu, 15 Mar 2018 11:00:47 -0700 Subject: [PATCH] Minor Bug fixes... --- fdbclient/NativeAPI.actor.cpp | 2 +- .../workloads/ClientTransactionProfileCorrectness.actor.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fdbclient/NativeAPI.actor.cpp b/fdbclient/NativeAPI.actor.cpp index d57414f3be..92feae9f93 100644 --- a/fdbclient/NativeAPI.actor.cpp +++ b/fdbclient/NativeAPI.actor.cpp @@ -430,7 +430,7 @@ ACTOR static Future clientStatusUpdateActor(DatabaseContext *cx) { // tr is destructed because it hold a reference to DatabaseContext which creates a cycle mentioned above. // Hence destroy the transacation before sleeping to give a chance for the actor to be cleanedup if the Database is destroyed by the user. tr = Transaction(); - Void _ = wait(delay(*(const_cast(&CLIENT_KNOBS->CSI_STATUS_DELAY)))); // CSI_STATUS_DELAY is modified by ClientTransactionProfileCorrectnessWorkload + Void _ = wait(delay(CLIENT_KNOBS->CSI_STATUS_DELAY)); } catch (Error& e) { if (e.code() == error_code_actor_cancelled) { diff --git a/fdbserver/workloads/ClientTransactionProfileCorrectness.actor.cpp b/fdbserver/workloads/ClientTransactionProfileCorrectness.actor.cpp index 28d3bbe858..c22a85bd06 100644 --- a/fdbserver/workloads/ClientTransactionProfileCorrectness.actor.cpp +++ b/fdbserver/workloads/ClientTransactionProfileCorrectness.actor.cpp @@ -29,7 +29,7 @@ bool checkTxInfoEntryFormat(BinaryReader &reader) { reader >> protocolVersion; reader.setProtocolVersion(protocolVersion); - while (reader.empty()) { + while (!reader.empty()) { // Get EventType and timestamp FdbClientLogEvents::EventType event; reader >> event;