Skip to content

Commit e31fbad

Browse files
committed
Small blob fixes
1 parent 47ac9e0 commit e31fbad

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/DataBlobs/services/BlobStores.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ end
226226
function deleteBlob!(store::FolderStore{T}, blobId::UUID) where {T}
227227
blobfilename = joinpath(store.folder, "$blobId.dat")
228228

229-
data = getBlob(store, entry)
229+
data = getBlob(store, blobId)
230230
rm(blobfilename)
231231
return data
232232
end
@@ -261,7 +261,7 @@ function addBlob!(store::InMemoryBlobStore{T}, blobId::UUID, data::T) where {T}
261261
error("Key '$blobId' blob already exists.")
262262
end
263263
store.blobs[blobId] = data
264-
return UUIDblobId
264+
return blobId
265265
end
266266

267267
function updateBlob!(store::InMemoryBlobStore{T}, blobId::UUID, data::T) where {T}

src/DataBlobs/services/HelpersDataWrapEntryBlob.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ function addData!(
117117
)
118118
checkhash && assertHash(entry, blob, hashfunction=hashfunction)
119119
blobId = addBlob!(dfg, entry, blob) |> UUID
120-
newEntry = BlobEntry(entry; id=blobId, blobId) #, size=length(blob))
121-
addBlobEntry!(dfg, label, newEntry; blobSize=length(blob))
120+
newEntry = BlobEntry(entry; blobId) #, size=length(blob))
121+
addBlobEntry!(dfg, label, newEntry)
122122
end
123123

124124
function addData!(
@@ -132,8 +132,8 @@ function addData!(
132132
)
133133
checkhash && assertHash(entry, blob; hashfunction)
134134
blobId = addBlob!(blobstore, entry, blob) |> UUID
135-
newEntry = BlobEntry(entry; id=blobId, blobId) #, size=length(blob))
136-
addBlobEntry!(dfg, label, newEntry; blobSize=length(blob))
135+
newEntry = BlobEntry(entry; blobId) #, size=length(blob))
136+
addBlobEntry!(dfg, label, newEntry)
137137
end
138138

139139

src/GraphsDFG/entities/GraphsDFG.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ mutable struct GraphsDFG{T <: AbstractParams, V <: AbstractDFGVariable, F <:Abst
1818
sessionData::Dict{Symbol, String}
1919
addHistory::Vector{Symbol} #TODO: Discuss more - is this an audit trail?
2020
solverParams::T # Solver parameters
21-
blobStores::OrderedDict{Symbol, <:AbstractBlobStore}
21+
blobStores::Dict{Symbol, <:AbstractBlobStore}
2222
end
2323

2424
"""

0 commit comments

Comments
 (0)