]> git.ipfire.org Git - thirdparty/bacula.git/commit
Fix org#2500 .bvfs_get_jobids jobid=X must return X in the list part2
authorAlain Spineux <alain@baculasystems.com>
Tue, 4 May 2021 09:43:45 +0000 (11:43 +0200)
committerEric Bollengier <eric@baculasystems.com>
Thu, 24 Mar 2022 08:03:01 +0000 (09:03 +0100)
commit77d4c509828d95975e53d73f98cea76671076eb3
treef350f3ba15d3e62cbfe7e218ff88d1ff29260682
parent953b52ccb91f4349c959af835881dcfefec4055b
Fix org#2500 .bvfs_get_jobids jobid=X must return X in the list part2

- restrict this feature to the ".bvfs_get_jobids" command only
- else any call with a jcr->JobId != 0 force the function to use it
  this is not what we want.
- notice the following change in the behaviour of the .bvfs_get_jobids
  command when a job has been migrated :
| JobId | Name             | StartTime           | Type | Level | JobFiles
+-------+------------------+---------------------+------+-------+---------
| 1     | MigrationJobSave | 2021-05-04 11:16:26 | M    | F     | 3131
| 5     | MigrationJobSave | 2021-05-04 11:16:26 | B    | F     | 3131
*.bvfs_get_jobids jobid=1
5 <== before the change
*.bvfs_get_jobids jobid=1
<EMPTY-LINE>  <== after the change
bacula/src/cats/bdb.h
bacula/src/cats/bvfs.c
bacula/src/cats/protos.h
bacula/src/cats/sql_get.c
bacula/src/dird/ua_dotcmds.c