Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
MKCLOS
Core Development Platform
corepkgv2
Commits
be800ea9
Commit
be800ea9
authored
5 years ago
by
Vivek Naik
Browse files
Options
Downloads
Patches
Plain Diff
fix
parent
d3dac9b7
2 merge requests
!134
Mep release271219
,
!133
Add: Asset FDB and merged bucket type
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dalmdl/corefdb/bucket.go
+3
-1
dalmdl/corefdb/bucket.go
with
3 additions
and
1 deletion
dalmdl/corefdb/bucket.go
+
3
−
1
View file @
be800ea9
...
@@ -511,6 +511,8 @@ func SaveMediaInFDB(dbName string, indexID string, mediaData []byte, rs *gjson.R
...
@@ -511,6 +511,8 @@ func SaveMediaInFDB(dbName string, indexID string, mediaData []byte, rs *gjson.R
loggermdl
.
LogError
(
err
)
loggermdl
.
LogError
(
err
)
return
recordPath
,
errormdl
.
CheckErr
(
err
)
return
recordPath
,
errormdl
.
CheckErr
(
err
)
}
}
rsStr
,
_
:=
sjson
.
Set
(
rs
.
String
(),
"fileType"
,
FileTypeAsset
)
data
:=
gjson
.
Parse
(
rsStr
)
// bucketID := index.BucketSequence[len(index.BucketSequence)-1]
// bucketID := index.BucketSequence[len(index.BucketSequence)-1]
// bucket, ok := fdb.buckets[bucketID]
// bucket, ok := fdb.buckets[bucketID]
...
@@ -534,7 +536,7 @@ func SaveMediaInFDB(dbName string, indexID string, mediaData []byte, rs *gjson.R
...
@@ -534,7 +536,7 @@ func SaveMediaInFDB(dbName string, indexID string, mediaData []byte, rs *gjson.R
// return recordPath, errormdl.Wrap("infileIndex for specified fileType not found: " + fileType)
// return recordPath, errormdl.Wrap("infileIndex for specified fileType not found: " + fileType)
// }
// }
recordID
,
err
:=
filepack
.
AddMediaInPackFile
(
filePath
,
mediaData
,
[]
filepack
.
InFileIndexField
{},
rs
)
recordID
,
err
:=
filepack
.
AddMediaInPackFile
(
filePath
,
mediaData
,
[]
filepack
.
InFileIndexField
{},
&
data
)
if
err
!=
nil
{
if
err
!=
nil
{
loggermdl
.
LogError
(
"fail to add fdb index entry in file: "
,
err
)
loggermdl
.
LogError
(
"fail to add fdb index entry in file: "
,
err
)
return
recordPath
,
errormdl
.
Wrap
(
"fail to write data in file"
)
return
recordPath
,
errormdl
.
Wrap
(
"fail to write data in file"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets