We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0546484 commit 16d8cabCopy full SHA for 16d8cab
utils.go
@@ -69,6 +69,15 @@ func CreateNewSnapshot(snapshotTag string) (string, error) {
69
return snapshotName, nil
70
}
71
72
+func ClearSnapshot(snapshotName string) error {
73
+ result := SystemCall("nodetool", "clearsnapshot", snapshotName)
74
+ if result.StatusCode != 0 {
75
+ return errors.New("Clearing snapshot failed")
76
+ }
77
+
78
+ return nil
79
+}
80
81
func prettyPrint(in ...interface{}) {
82
pretty.Println(in)
83
0 commit comments