Add loadWithMemcache() to Ofy

Also clean up some minor uses of load() to standardize calls.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=154067731
This commit is contained in:
cgoldfeder 2017-04-24 10:47:31 -07:00 committed by Ben McIlwain
parent c1643fa3cd
commit c596d23523
2 changed files with 24 additions and 6 deletions

View file

@ -136,7 +136,7 @@ public final class DeleteOldCommitLogsAction implements Runnable {
private boolean doesEnoughDataExistThatThisTaskIsWorthRunning() {
int tenth = Math.max(1, maxDeletes / 10);
int count = queryManifests(ofy.loadEventuallyConsistent())
int count = queryManifests(ofy.load())
.limit(tenth)
.count();
if (0 < count && count < tenth) {