Skip to content

Commit

Permalink
Refactor some code in RocksDBStdSessions
Browse files Browse the repository at this point in the history
Change-Id: I0561be1a71322644465e745ded9ca1636bff078a
  • Loading branch information
Linary committed Mar 26, 2021
1 parent 060f190 commit 699d03b
Show file tree
Hide file tree
Showing 4 changed files with 201 additions and 191 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@

package com.baidu.hugegraph.backend.store.rocksdb;

import java.nio.file.Path;
import java.util.List;
import java.util.Set;

import org.apache.commons.lang3.tuple.Pair;
import org.rocksdb.RocksDBException;

import com.alipay.sofa.jraft.storage.snapshot.remote.Session;
import com.baidu.hugegraph.backend.store.BackendEntry.BackendColumnIterator;
import com.baidu.hugegraph.backend.store.BackendSession.AbstractBackendSession;
import com.baidu.hugegraph.backend.store.BackendSessionPool;
Expand All @@ -52,10 +52,10 @@ public abstract RocksDBSessions copy(HugeConfig config,

public abstract void resumeSnapshot(String snapshotPath);

public abstract Path buildSnapshotPath(Path originDataPath,
String snapshotPrefix,
boolean deleteSnapshot)
throws RocksDBException;
public abstract String buildSnapshotPath(String snapshotPrefix);

public abstract String hardLinkSnapshot(String snapshotPath)
throws RocksDBException;

public abstract void reloadRocksDB() throws RocksDBException;

Expand Down
Loading

0 comments on commit 699d03b

Please sign in to comment.