jacek-lewandowski commented on code in PR #2295:
URL: https://github.com/apache/cassandra/pull/2295#discussion_r1177460970
##########
src/java/org/apache/cassandra/cache/AutoSavingCache.java:
##########
@@ -196,12 +205,18 @@ public int loadSaved()
// modern format, allows both key and value (so key cache load can be
purely sequential)
File dataPath = getCacheDataPath(CURRENT_VERSION);
File crcPath = getCacheCrcPath(CURRENT_VERSION);
- if (dataPath.exists() && crcPath.exists())
+ File metadataPath = getCacheMetadataPath(CURRENT_VERSION);
+ if (dataPath.exists() && crcPath.exists() && metadataPath.exists())
Review Comment:
This is doable, but I don't know if complicating this code is worth
restoring the cache from previous version 🤷🏻♂️
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]