Browse files

Make the OperationState volatile. SPY-88

Change-Id: Id8a871c018a6a6372367129b8924e5a833f83644
Reviewed-on: http://review.couchbase.org/16255
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>
  • Loading branch information...
1 parent cdc26cd commit ad74d96fdad7680ecaad9526d2c297409b3091a3 @ingenthr ingenthr committed with mikewied May 17, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/main/java/net/spy/memcached/protocol/BaseOperationImpl.java
View
4 src/main/java/net/spy/memcached/protocol/BaseOperationImpl.java
@@ -1,6 +1,6 @@
/**
* Copyright (C) 2006-2009 Dustin Sallings
- * Copyright (C) 2009-2011 Couchbase, Inc.
+ * Copyright (C) 2009-2012 Couchbase, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
@@ -52,7 +52,7 @@
new CancelledOperationStatus();
public static final OperationStatus TIMED_OUT=
new TimedOutOperationStatus();
- private OperationState state = OperationState.WRITE_QUEUED;
+ private volatile OperationState state = OperationState.WRITE_QUEUED;
private ByteBuffer cmd = null;
private boolean cancelled = false;
private OperationException exception = null;

0 comments on commit ad74d96

Please sign in to comment.