[history-v1] add readOnly lookup for raw chunks (#23318)
* [history-v1] add readOnly lookup for raw chunks Co-authored-by: Eric Mc Sween <eric.mcsween@overleaf.com> * [history-v1] reduce min poolsize for readOnly pool to 0 Co-authored-by: Brian Gough <brian.gough@overleaf.com> --------- Co-authored-by: Eric Mc Sween <eric.mcsween@overleaf.com> Co-authored-by: Brian Gough <brian.gough@overleaf.com> GitOrigin-RevId: a711c4ee4f3ea3775bd090e620d1ef52689fa1f4
This commit is contained in:
committed by
Copybot
co-authored by
Eric Mc Sween
Brian Gough
parent
01ed0c10a0
commit
3a4c5a0d0f
@@ -117,7 +117,8 @@ function checkFileTreeNeedsResync(folder) {
|
||||
async function getLastEndTimestamp(projectId, historyId) {
|
||||
const raw = await HistoryStoreManager.promises.getMostRecentVersionRaw(
|
||||
projectId,
|
||||
historyId
|
||||
historyId,
|
||||
{ readOnly: true }
|
||||
)
|
||||
if (!raw) throw new Error('bug: history not initialized')
|
||||
return raw.endTimestamp
|
||||
|
||||
Reference in New Issue
Block a user