1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/libnetwork/datastore
Jana Radhakrishnan 3f7e26160e Share libkv store handles across datastore handles
Currently every `NewDatastore` creates a brand new
libkv store handle. This change attempts to share
the libkv store handle across various datastore handles
which share the same scope configuration. This enables
libnetwork and drivers to have different datastore handle
based on the same configuration but share the same
underlying libkv store handle.

This is mandatory for boltdb libkv backend because no two
clients can get exclusive access to boltdb file at the same
time. For other backends it just avoids the overhead of having
too many backend client instances

Signed-off-by: Jana Radhakrishnan <mrjana@docker.com>
2015-10-06 22:06:45 -07:00
..
cache.go Add local store caching support 2015-10-06 14:15:31 -07:00
datastore.go Share libkv store handles across datastore handles 2015-10-06 22:06:45 -07:00
datastore_test.go Add local store caching support 2015-10-06 14:15:31 -07:00
mock_store.go Datastore handles creating objects atomically. 2015-06-25 10:53:48 -07:00