File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -276,10 +276,12 @@ public void evaluate(VersionGCStats stats) {
276276 // success, we would not expect to encounter revisions older than this in the future
277277 setVGCSetting (SETTINGS_COLLECTION_OLDEST_TIMESTAMP_PROP , scope .toMs );
278278
279- final Map <String , Object > updateVGCMap = new HashMap <>();
280- updateVGCMap .put (SETTINGS_COLLECTION_FULL_GC_TIMESTAMP_PROP , stats .oldestModifiedDocTimeStamp );
281- updateVGCMap .put (SETTINGS_COLLECTION_FULL_GC_DOCUMENT_ID_PROP , stats .oldestModifiedDocId );
282- updateVGCSetting (updateVGCMap );
279+ if (fullGCEnabled ) {
280+ final Map <String , Object > updateVGCMap = new HashMap <>();
281+ updateVGCMap .put (SETTINGS_COLLECTION_FULL_GC_TIMESTAMP_PROP , stats .oldestModifiedDocTimeStamp );
282+ updateVGCMap .put (SETTINGS_COLLECTION_FULL_GC_DOCUMENT_ID_PROP , stats .oldestModifiedDocId );
283+ updateVGCSetting (updateVGCMap );
284+ }
283285
284286 int count = stats .deletedDocGCCount - stats .deletedLeafDocGCCount ;
285287 double usedFraction ;
You can’t perform that action at this time.
0 commit comments