index-backend: lock mutex when swapping
commit4baa94c33679b4fda61d8a48c1db404132dcc654
authorMichael Stapelberg <michael@stapelberg.de>
Sat, 13 Dec 2014 21:52:58 +0000 (13 22:52 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Sat, 13 Dec 2014 21:52:58 +0000 (13 22:52 +0100)
tree21df05d5189488318206a4e0b7ce4f3fcd11ecc2
parent365dcab15e4fd44a92177ce8d993bc91beb6b993
index-backend: lock mutex when swapping

This was a problem for the first time today in production, so let’s fix
it for good :).
cmd/dcs-index-backend/index-backend.go