Skip to content

Commit

Permalink
Remove unneeded synchronization
Browse files Browse the repository at this point in the history
  • Loading branch information
dgomezferro committed May 29, 2012
1 parent bcd0f9b commit 1ac32f4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/yahoo/omid/tso/TSOState.java
Expand Up @@ -125,7 +125,7 @@ protected TimestampOracle getSO(){
*
* @param startTimestamp
*/
protected synchronized void processCommit(long startTimestamp, long commitTimestamp){
protected void processCommit(long startTimestamp, long commitTimestamp){
largestDeletedTimestamp = hashmap.setCommitted(startTimestamp, commitTimestamp, largestDeletedTimestamp);
}

Expand Down
Expand Up @@ -61,7 +61,7 @@ public class LoggerProtocol extends TSOState{
* Execute a logged entry (several logged ops)
* @param bb Serialized operations
*/
synchronized void execute(ByteBuffer bb){
void execute(ByteBuffer bb){
boolean done = !bb.hasRemaining();
while(!done){
byte op = bb.get();
Expand Down Expand Up @@ -123,7 +123,7 @@ synchronized void execute(ByteBuffer bb){
*
* @return true if the recovery has finished
*/
synchronized boolean finishedRecovery() {
boolean finishedRecovery() {
return (oracle && commits && aborts) || consumed;
}

Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/log4j.properties
@@ -1,4 +1,4 @@
log4j.rootLogger=TRACE,console
log4j.rootLogger=INFO,console

# Logging Threshold
log4j.threshhold=ALL
Expand Down

0 comments on commit 1ac32f4

Please sign in to comment.