sync log's not working as expected
diff --git a/src/sync-log.cc b/src/sync-log.cc
index 90f5ba1..d5a8750 100644
--- a/src/sync-log.cc
+++ b/src/sync-log.cc
@@ -354,8 +354,6 @@
{
SyncState *state = msg->add_state ();
- cout << "Bytes: " << sqlite3_column_bytes (stmt, 0) << endl;
- cout << "Pointer: " << sqlite3_column_blob (stmt, 0) << endl;
state->set_name (reinterpret_cast<const char*> (sqlite3_column_blob (stmt, 0)), sqlite3_column_bytes (stmt, 0));
// locator is optional, so must check if it is null
@@ -365,7 +363,7 @@
}
sqlite3_int64 newSeqNo = sqlite3_column_int64 (stmt, 3);
- if (newSeqNo > 0)
+ if (newSeqNo >= 0)
{
state->set_type (SyncState::UPDATE);
state->set_seq (newSeqNo);