diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/snapshot/SnapshotManager.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/snapshot/SnapshotManager.java index 419a490da7d..e60043f2499 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/snapshot/SnapshotManager.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/snapshot/SnapshotManager.java @@ -723,7 +723,7 @@ public class SnapshotManager extends MasterProcedureManager implements Stoppable // call coproc pre hook if (cpHost != null) { - cpHost.preRestoreSnapshot(reqSnapshot, snapshotTableDesc); + cpHost.preRestoreSnapshot(snapshot, snapshotTableDesc); } int tableRegionCount = -1; @@ -767,12 +767,12 @@ public class SnapshotManager extends MasterProcedureManager implements Stoppable LOG.info("Restore snapshot=" + snapshot.getName() + " as table=" + tableName); if (cpHost != null) { - cpHost.postRestoreSnapshot(reqSnapshot, snapshotTableDesc); + cpHost.postRestoreSnapshot(snapshot, snapshotTableDesc); } } else { HTableDescriptor htd = new HTableDescriptor(tableName, snapshotTableDesc); if (cpHost != null) { - cpHost.preCloneSnapshot(reqSnapshot, htd); + cpHost.preCloneSnapshot(snapshot, htd); } try { checkAndUpdateNamespaceQuota(manifest, tableName); @@ -786,7 +786,7 @@ public class SnapshotManager extends MasterProcedureManager implements Stoppable LOG.info("Clone snapshot=" + snapshot.getName() + " as table=" + tableName); if (cpHost != null) { - cpHost.postCloneSnapshot(reqSnapshot, htd); + cpHost.postCloneSnapshot(snapshot, htd); } } }