MB-23719: Add dynamic change of ephemeral_metadata_purge_age
[ep-engine.git] / src / ep_engine.cc
index af448d6..d82beda 100644 (file)
@@ -583,6 +583,10 @@ protocol_binary_response_status EventuallyPersistentEngine::setFlushParam(
         } else if (strcmp(keyz, "ephemeral_full_policy") == 0) {
             getConfiguration().requirementsMetOrThrow("ephemeral_full_policy");
             getConfiguration().setEphemeralFullPolicy(valz);
+        } else if (strcmp(keyz, "ephemeral_metadata_purge_age") == 0) {
+            getConfiguration().requirementsMetOrThrow(
+                    "ephemeral_metadata_purge_age");
+            getConfiguration().setEphemeralMetadataPurgeAge(std::stoull(valz));
         } else if (strcmp(keyz, "ephemeral_metadata_purge_interval") == 0) {
             getConfiguration().requirementsMetOrThrow("ephemeral_metadata_purge_interval");
             getConfiguration().setEphemeralMetadataPurgeInterval(