Skip to content

Commit

Permalink
insert into file with clientid
Browse files Browse the repository at this point in the history
  • Loading branch information
aussendorf committed Sep 7, 2018
1 parent 8106edf commit 9996f15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/cats/sql_create.cc
Expand Up @@ -998,9 +998,9 @@ bool BareosDb::CreateFileRecord(JobControlRecord *jcr, AttributesDbRecord *ar)
/* Must create it */
Mmsg(cmd,
"INSERT INTO File (FileIndex,JobId,PathId,Name,"
"LStat,MD5,DeltaSeq,Fhinfo,Fhnode) VALUES (%u,%u,%u,'%s','%s','%s',%u,%llu,%llu)",
"LStat,MD5,DeltaSeq,Fhinfo,Fhnode, ClientId) VALUES (%u,%u,%u,'%s','%s','%s',%u,%llu,%llu,%u)",
ar->FileIndex, ar->JobId, ar->PathId, esc_name,
ar->attr, digest, ar->DeltaSeq, ar->Fhinfo, ar->Fhnode);
ar->attr, digest, ar->DeltaSeq, ar->Fhinfo, ar->Fhnode, ar->ClientId);

ar->FileId = SqlInsertAutokeyRecord(cmd, NT_("File"));
if (ar->FileId == 0) {
Expand Down

0 comments on commit 9996f15

Please sign in to comment.