this repo has no description
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

Use different log message for empty batches

garrison 0f64ba00 a846d037

+4 -2
+4 -2
lib/servers/commit_buffer.ex
··· 346 346 SimServer.reply(txn.from, {:error, {:read_conflict, %{commit_version: commit_version, batch_index: txn.batch_index}}}) 347 347 end) 348 348 349 - batch_size = length(allowed_transactions) 350 - SimLogger.debug "CommitBuffer (id=#{state.id}) committed batch (batch_size=#{batch_size} commit_version=#{commit_version})" 349 + case length(allowed_transactions) do 350 + 0 -> SimLogger.debug "CommitBuffer (id=#{state.id}) committed empty batch" 351 + batch_size -> SimLogger.debug "CommitBuffer (id=#{state.id}) committed batch (batch_size=#{batch_size} commit_version=#{commit_version})" 352 + end 351 353 352 354 %{state | 353 355 last_committed_version: commit_version,