am da9793b0: am 1f3014aa: Optimize database pruning when secondary storage is unmounted

* commit 'da9793b0d5911b659028d3d286dec4cc36972682':
  Optimize database pruning when secondary storage is unmounted