summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@yahoo-inc.com>2017-04-24 14:57:04 +0000
committerTor Egge <Tor.Egge@yahoo-inc.com>2017-04-24 14:57:04 +0000
commitdd3c1e2309dc71b8e31119d80ea8a1b204c8cc0e (patch)
treec49f7bc88135e9f41b004b30f1957ef33660125e
parent5a1b72a923e086e6df31c9eda32791df75f50c97 (diff)
Remove usage of wipe history.
-rw-r--r--searchcore/src/apps/vespa-proton-cmd/vespa-proton-cmd.cpp8
-rw-r--r--searchcore/src/vespa/searchcore/proton/server/rpc_hooks.cpp20
2 files changed, 0 insertions, 28 deletions
diff --git a/searchcore/src/apps/vespa-proton-cmd/vespa-proton-cmd.cpp b/searchcore/src/apps/vespa-proton-cmd/vespa-proton-cmd.cpp
index 626bbb3b3f4..3931daf7fdd 100644
--- a/searchcore/src/apps/vespa-proton-cmd/vespa-proton-cmd.cpp
+++ b/searchcore/src/apps/vespa-proton-cmd/vespa-proton-cmd.cpp
@@ -49,7 +49,6 @@ public:
fprintf(stderr, "disableSearching\n");
fprintf(stderr, "triggerFlush\n");
fprintf(stderr, "prepareRestart\n");
- fprintf(stderr, "wipeHistory\n");
return 1;
}
@@ -403,13 +402,6 @@ public:
fprintf(stderr, "Unexpected return value\n");
}
}
- } else if (strcmp(_argv[2], "wipeHistory") == 0) {
- _req->SetMethodName("proton.wipeHistory");
- invokeRPC(false, 86400.0);
- invoked = true;
- if (! _req->IsError()) {
- printf("OK: history wiped\n");
- }
} else if (strcmp(_argv[2], "die") == 0) {
_req->SetMethodName("pandora.rtc.die");
diff --git a/searchcore/src/vespa/searchcore/proton/server/rpc_hooks.cpp b/searchcore/src/vespa/searchcore/proton/server/rpc_hooks.cpp
index 7761ec59913..d38ca2dd72a 100644
--- a/searchcore/src/vespa/searchcore/proton/server/rpc_hooks.cpp
+++ b/searchcore/src/vespa/searchcore/proton/server/rpc_hooks.cpp
@@ -181,10 +181,6 @@ RPCHooksBase::initRPC()
"such that TLS replay time + time spent flushing components is as low as possible");
rb.ReturnDesc("success", "Whether or not prepare for restart was triggered.");
//-------------------------------------------------------------------------
- rb.DefineMethod("proton.wipeHistory", "", "", true,
- FRT_METHOD(RPCHooksBase::rpc_wipeHistory), this);
- rb.MethodDesc("Tell the node to wipe history");
- //-------------------------------------------------------------------------
rb.DefineMethod("proton.listDocTypes", "", "S", true,
FRT_METHOD(RPCHooksBase::rpc_listDocTypes), this);
rb.MethodDesc("Get the current list of document types");
@@ -447,22 +443,6 @@ RPCHooksBase::rpc_prepareRestart(FRT_RPCRequest *req)
}
void
-RPCHooksBase::wipeHistory(FRT_RPCRequest *req)
-{
- _proton.wipeHistory();
- LOG(info, "RPCHooksBase::wipeHistory finished successfully");
- req->Return();
-}
-
-void
-RPCHooksBase::rpc_wipeHistory(FRT_RPCRequest *req)
-{
- LOG(info, "RPCHooksBase::rpc_wipeHistory started");
- req->Detach();
- letProtonDo(makeClosure(this, &RPCHooksBase::wipeHistory, req));
-}
-
-void
RPCHooksBase::listDocTypes(FRT_RPCRequest *req)
{
std::vector<string> documentTypes;