final boolean trace = LOG.isTraceEnabled();
final DatabaseEntry key = new DatabaseEntry();
final DatabaseEntry data = new DatabaseEntry();
try (DiskOrderedCursor cursor = ownerDirectory.openCursor(new DiskOrderedCursorConfig().setKeysOnly(true))) {
OperationStatus retVal = cursor.getNext(key, data, null);
while (retVal == OperationStatus.SUCCESS) {
if (trace)
LOG.trace("Owner of {} -> 0", Longs.fromByteArray(key.getData()));