|
|
@ -59,7 +59,7 @@ func NewStore(grpcDialOption grpc.DialOption, port int, ip, publicUrl string, di |
|
|
|
|
|
|
|
return |
|
|
|
} |
|
|
|
func (s *Store) AddVolume(volumeId needle.VolumeId, collection string, needleMapKind NeedleMapType, replicaPlacement string, ttlString string, preallocate int64, in_memory bool) error { |
|
|
|
func (s *Store) AddVolume(volumeId needle.VolumeId, collection string, needleMapKind NeedleMapType, replicaPlacement string, ttlString string, preallocate int64, memoryMapped bool) error { |
|
|
|
rt, e := NewReplicaPlacementFromString(replicaPlacement) |
|
|
|
if e != nil { |
|
|
|
return e |
|
|
@ -68,7 +68,7 @@ func (s *Store) AddVolume(volumeId needle.VolumeId, collection string, needleMap |
|
|
|
if e != nil { |
|
|
|
return e |
|
|
|
} |
|
|
|
e = s.addVolume(volumeId, collection, needleMapKind, rt, ttl, preallocate, in_memory) |
|
|
|
e = s.addVolume(volumeId, collection, needleMapKind, rt, ttl, preallocate, memoryMapped) |
|
|
|
return e |
|
|
|
} |
|
|
|
func (s *Store) DeleteCollection(collection string) (e error) { |
|
|
|