| | |
| | | boolean removeIndexTrustState(WriteableStorage txn, DatabaseContainer index) throws StorageRuntimeException |
| | | { |
| | | ByteString key = keyForIndex(index); |
| | | return delete(txn, key); |
| | | return txn.delete(getName(), key); |
| | | } |
| | | |
| | | /** |
| | |
| | | throws StorageRuntimeException |
| | | { |
| | | ByteString key = keyForIndex(index); |
| | | ByteString value = read(txn, key, false); |
| | | ByteString value = txn.read(getName(), key); |
| | | |
| | | return value != null && value.equals(trueBytes); |
| | | } |
| | |
| | | { |
| | | ByteString key = keyForIndex(index); |
| | | |
| | | txn.create(treeName, key, trusted ? trueBytes : falseBytes); |
| | | txn.create(getName(), key, trusted ? trueBytes : falseBytes); |
| | | } |
| | | |
| | | } |