Skip to content

Commit 2e8bc41

Browse files
authored
Merge pull request #343 from JuliaRobotics/1Q20/bugfix/copystores
Minifix for copy stores, needs to be tested
2 parents 0fda37d + 9c86326 commit 2e8bc41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/BigData/services/AbstractDataStore.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,13 @@ Returns the list of copied entries.
4949
"""
5050
function copyStore(sourceStore::D1, destStore::D2; sourceEntries=listEntries(sourceStore))::Vector{E} where {T, D1 <: AbstractDataStore{T}, D2 <: AbstractDataStore{T}, E <: AbstractBigDataEntry}
5151
# Quick check
52-
destEntries = listEntries(destStore)
52+
destEntries = listStoreEntries(destStore)
5353
typeof(sourceEntries) != typeof(destEntries) && error("Can't copy stores, source has entries of type $(typeof(sourceEntries)), destination has entries of type $(typeof(destEntries)).")
5454
# Same source/destination check
5555
sourceStore == destStore && error("Can't specify same store for source and destination.")
5656
# Otherwise, continue
5757
for sourceEntry in sourceEntries
58-
addData!(destStore, deepcopy(sourceEntry), getData(sourceStore, sourceEntry))
58+
addBigData!(destStore, deepcopy(sourceEntry), getBigData(sourceStore, sourceEntry))
5959
end
6060
return sourceEntries
6161
end

0 commit comments

Comments
 (0)