public void markForUpdate(DbTransaction txn, byte[] key) {
try {
DatabaseEntry valueEntry = new DatabaseEntry();
/* Ignore value by truncating to zero bytes */
valueEntry.setPartial(0, 0, true);
OperationStatus status = db.get(
BdbTransaction.getBdbTxn(txn), new DatabaseEntry(key),
valueEntry, LockMode.RMW);
if (status != SUCCESS && status != NOTFOUND) {
throw new DbDatabaseException("Operation failed: " + status);
}