Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create a second query for finding the last full backup when no specific pool is specified as then we don't need to JOIN the JobMedia and Media table into the query as we don't select on the Media's PoolId. Also drop the JOIN on Client as we don't select any column from that table anyway and the query is also kind of clumbsy by specifying twice the ClientId instead of using a single WHERE on the ClientId and use an AND Client.ClientId = Job.ClientId. Fixes #363: zero-byte Full backups are ignored for restore
- Loading branch information
Marco van Wieringen
committed
Feb 17, 2015
1 parent
24de15e
commit b8ef82e
Showing
3 changed files
with
61 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters