| | |
| | | protected void put(WriteableStorage txn, ByteSequence key, ByteSequence value) |
| | | throws StorageRuntimeException |
| | | { |
| | | txn.put(treeName, key, value); |
| | | txn.create(treeName, key, value); |
| | | if (logger.isTraceEnabled()) |
| | | { |
| | | logger.trace(messageToLog(true, treeName, txn, key, value)); |
| | |
| | | */ |
| | | protected ByteString read(ReadableStorage txn, ByteSequence key, boolean isRMW) throws StorageRuntimeException |
| | | { |
| | | ByteString value = isRMW ? txn.get(treeName, key) : txn.getRMW(treeName, key); |
| | | ByteString value = isRMW ? txn.read(treeName, key) : txn.getRMW(treeName, key); |
| | | if (logger.isTraceEnabled()) |
| | | { |
| | | logger.trace(messageToLog(value != null, treeName, txn, key, value)); |
| | |
| | | */ |
| | | protected boolean delete(WriteableStorage txn, ByteSequence key) throws StorageRuntimeException |
| | | { |
| | | boolean result = txn.remove(treeName, key); |
| | | boolean result = txn.delete(treeName, key); |
| | | if (logger.isTraceEnabled()) |
| | | { |
| | | logger.trace(messageToLog(result, treeName, txn, key, null)); |