Skip to content

Commit

Permalink
Remove unneeded conversion of checkpoint id to binary.
Browse files Browse the repository at this point in the history
Change-Id: If15575a5d5c2a0ffc587bc4efa5ea1841b9ee649
Reviewed-on: http://review.couchbase.org/10807
Tested-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Reviewed-by: Chiyoung Seo <chiyoung.seo@gmail.com>
  • Loading branch information
aartamonau committed Nov 11, 2011
1 parent c377e3f commit 4d581fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mc_couch_vbucket.erl
Expand Up @@ -36,7 +36,7 @@ set_vbucket(VBucket, StateName, CheckpointId, State) ->
_ ->
couch_db:open(DbName, Options)
end,
CheckpointId2 = list_to_binary(integer_to_list(CheckpointId)),
CheckpointId2 = integer_to_list(CheckpointId),
StateJson = iolist_to_binary(["{\"state\": \"", StateName,
"\", \"checkpoint_id\": \"",
CheckpointId2, "\"}"]),
Expand Down

0 comments on commit 4d581fb

Please sign in to comment.