Add comment describing why commit() should not be called during replay.
@@ -911,6 +911,13 @@ DocumentDB::syncFeedView()
IFeedView::SP newFeedView(_subDBs.getFeedView());
_writeService.sync();
+ /*
+ * Don't call commit() on visibility handler during transaction
+ * log replay since the serial number used for the commit will be
+ * too high until the replay is complete. This check can be
+ * removed again when feed handler has improved tracking of serial
+ * numbers during replay.
+ */
if (_state.getAllowReconfig()) {
_visibility.commit();
}
