Skip to content
This repository has been archived by the owner on Feb 9, 2021. It is now read-only.

Commit

Permalink
BZ-1192459: quick remediation for deadlock. this should be improved i…
Browse files Browse the repository at this point in the history
…n order to avoid method level sync.

(definitive solution should be careful in order to preserve clustering sync)
  • Loading branch information
porcelli committed Feb 20, 2015
1 parent 55194b5 commit 26cbe36
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -43,7 +43,7 @@ public class UserDataGridPreferencesServiceImpl implements UserDataGridPreferenc
private XStream xs = new XStream();

@Override
public void saveGridPreferences( GridPreferencesStore preferences ) {
public synchronized void saveGridPreferences( final GridPreferencesStore preferences ) {
final Path preferencesPath = userServicesBackend.buildPath( identity.getIdentifier(), "datagrid-preferences", preferences.getGlobalPreferences().getKey() );
try {
ioServiceConfig.startBatch( preferencesPath.getFileSystem() );
Expand Down

0 comments on commit 26cbe36

Please sign in to comment.