do not get storage lock just for attempting to set dirty flag when already have dirty attribute

This commit is contained in:
Maxim.Mossienko
2011-07-23 16:03:00 +04:00
parent c713d86b67
commit 03786a3fa8
@@ -440,6 +440,7 @@ abstract class PersistentEnumeratorBase<Data> implements Forceable, Closeable {
}
protected final void markDirty(boolean dirty) throws IOException {
if (dirty && isDirty()) return;
synchronized (ourLock) {
if (myDirty) {
if (!dirty) {