Summary: #12512 added the sanity check for this incompatible combination. However, it does the check during memtable insertion which can turn the DB into read-only mode. This PR moves the check earlier so that this write failure will not turn the DB into read-only mode and affect other DB operations.
Test plan:
updated unit test DBRangeDelTest.RowCache to write to DB after a failed DeleteRange(). The test fails before this PR.
Summary: #12512 added the sanity check for this incompatible combination. However, it does the check during memtable insertion which can turn the DB into read-only mode. This PR moves the check earlier so that this write failure will not turn the DB into read-only mode and affect other DB operations.
Test plan:
DBRangeDelTest.RowCache
to write to DB after a failed DeleteRange(). The test fails before this PR.