|
@@ -349,7 +349,7 @@ public class FSEditLog implements LogsPurgeable {
|
|
* File-based journals are skipped, since they are formatted by the
|
|
* File-based journals are skipped, since they are formatted by the
|
|
* Storage format code.
|
|
* Storage format code.
|
|
*/
|
|
*/
|
|
- void formatNonFileJournals(NamespaceInfo nsInfo) throws IOException {
|
|
|
|
|
|
+ synchronized void formatNonFileJournals(NamespaceInfo nsInfo) throws IOException {
|
|
Preconditions.checkState(state == State.BETWEEN_LOG_SEGMENTS,
|
|
Preconditions.checkState(state == State.BETWEEN_LOG_SEGMENTS,
|
|
"Bad state: %s", state);
|
|
"Bad state: %s", state);
|
|
|
|
|
|
@@ -360,7 +360,7 @@ public class FSEditLog implements LogsPurgeable {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- List<FormatConfirmable> getFormatConfirmables() {
|
|
|
|
|
|
+ synchronized List<FormatConfirmable> getFormatConfirmables() {
|
|
Preconditions.checkState(state == State.BETWEEN_LOG_SEGMENTS,
|
|
Preconditions.checkState(state == State.BETWEEN_LOG_SEGMENTS,
|
|
"Bad state: %s", state);
|
|
"Bad state: %s", state);
|
|
|
|
|