Skip to content

Commit

Permalink
YDA-5316: ignore stale replicas when retrieving data objects for brow…
Browse files Browse the repository at this point in the history
…sing
  • Loading branch information
lwesterhof authored Nov 28, 2023
1 parent 61680e6 commit c4f8a73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion browse.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def transform(row):

colls = map(transform, [c for c in list(qcoll) if _filter_vault_deposit_index(c)])

qdata = Query(ctx, dcols, "COLL_NAME = '{}'".format(coll),
qdata = Query(ctx, dcols, "COLL_NAME = '{}' AND DATA_REPL_STATUS n> '0'".format(coll),
offset=max(0, offset - qcoll.total_rows()), limit=limit - len(colls), output=AS_DICT)
datas = map(transform, list(qdata))

Expand Down

0 comments on commit c4f8a73

Please sign in to comment.