Update DeleteOldCommitLogs to only delete unreferenced logs

Now instead of deleting "all logs older than X", we delete "all logs older than
X that don't have any EppResource.getRevision()" pointing to them.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=161455827
This commit is contained in:
guyben 2017-07-10 16:09:40 -07:00 committed by jianglai
parent e293590520
commit 944d7a91d1
6 changed files with 215 additions and 252 deletions

View file

@ -13,10 +13,10 @@ java_library(
resources = glob(["testdata/*"]),
deps = [
"//java/google/registry/backup",
"//java/google/registry/config",
"//java/google/registry/model",
"//java/google/registry/util",
"//javatests/google/registry/testing",
"//javatests/google/registry/testing/mapreduce",
"//third_party/java/objectify:objectify-v4_1",
"@com_google_appengine_api_1_0_sdk//:testonly",
"@com_google_appengine_tools_appengine_gcs_client",