Skip to content
This repository was archived by the owner on May 12, 2021. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions tajo-common/src/main/java/org/apache/tajo/conf/TajoConf.java
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,13 @@ public static TimeZone getCurrentTimeZone() {
}

public static TimeZone setCurrentTimeZone(TimeZone timeZone) {
readLock.lock();
writeLock.lock();
try {
TimeZone oldTimeZone = CURRENT_TIMEZONE;
CURRENT_TIMEZONE = timeZone;
return oldTimeZone;
} finally {
readLock.unlock();
writeLock.unlock();
}
}

Expand All @@ -124,13 +124,13 @@ public static int getDateOrder() {
}

public static int setDateOrder(int dateOrder) {
readLock.lock();
writeLock.lock();
try {
int oldDateOrder = DATE_ORDER;
DATE_ORDER = dateOrder;
return oldDateOrder;
} finally {
readLock.unlock();
writeLock.unlock();
}
}

Expand Down