Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add --hard option to
gs flushCaches
command
- Loading branch information
1 parent
67bd61b
commit 8dc5ade
Showing
6 changed files
with
27 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 1 addition & 8 deletions
9
...itory/Tode-GemStone-Server-Core.package/TDGemStoneTool.class/instance/gsFlushCaches..2.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,3 @@ | ||
as yet unclassified | ||
gsFlushCaches | ||
ObjectLogEntry initialize. | ||
MCRepositoryGroup default repositoriesDo: [ :rep | rep flushCache ]. | ||
MCDefinition clearInstances. | ||
MCMethodDefinition cachedDefinitions | ||
removeKeys: MCMethodDefinition cachedDefinitions keys. | ||
MCMethodDefinition shutDown. | ||
MethodVersionHistory uniqueInstance cleanUp. | ||
TDTopezServer clearPersistentElementCacheStack | ||
^ self gsFlushCaches: false |
12 changes: 12 additions & 0 deletions
12
repository/Tode-GemStone-Server-Core.package/TDGemStoneTool.class/instance/gsFlushCaches..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
as yet unclassified | ||
gsFlushCaches: hardFlush | ||
ObjectLogEntry initialize. | ||
MCRepositoryGroup default repositoriesDo: [ :rep | rep flushCache ]. | ||
MCDefinition clearInstances. | ||
MCMethodDefinition cachedDefinitions | ||
removeKeys: MCMethodDefinition cachedDefinitions keys. | ||
MCMethodDefinition shutDown. | ||
TDTopezServer clearPersistentElementCacheStack. | ||
hardFlush | ||
ifTrue: [ MethodVersionHistory reset ] | ||
ifFalse: [ MethodVersionHistory uniqueInstance cleanUp ] |
6 changes: 3 additions & 3 deletions
6
...itory/Tode-GemStone-Server-Core.package/TDGemStoneTool.class/instance/gsflushCaches..1.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
as yet unclassified | ||
gsflushCaches | ||
" | ||
gs flushCaches | ||
gs flushCaches [--hard] | ||
" | ||
|
||
self getSubcommandOptsMixedLongShort: {}. | ||
self gsFlushCaches | ||
self getSubcommandOptsMixedLongShort: {#('hard' nil #'none')}. | ||
self gsFlushCaches: (subOptions includesKey: 'hard') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
repository/Tode-GemStone-Server-Core.package/monticello.meta/version
Large diffs are not rendered by default.
Oops, something went wrong.