Skip to content

Commit

Permalink
Log dropped commands, rather than sending to server(0)
Browse files Browse the repository at this point in the history
  • Loading branch information
rescrv committed Mar 14, 2017
1 parent e00237c commit 4d15a54
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions daemon/daemon.cc
Expand Up @@ -1260,6 +1260,12 @@ daemon :: send_paxos_submit(uint64_t slot_start,
uint64_t slot_limit,
const e::slice& command)
{
if (m_acceptor.current_ballot() == ballot())
{
LOG_IF(INFO, s_debug_mode) << "dropping command submission because the leader is unknown";
return;
}

const size_t sz = BUSYBEE_HEADER_SIZE
+ pack_size(REPLNET_PAXOS_SUBMIT)
+ 2 * sizeof(uint64_t)
Expand Down

0 comments on commit 4d15a54

Please sign in to comment.