~ubuntu-branches/ubuntu/precise/ceph/precise-proposed

« back to all changes in this revision

Viewing changes to src/mds/snap.cc

  • Committer: Bazaar Package Importer
  • Author(s): Laszlo Boszormenyi (GCS)
  • Date: 2011-04-25 10:09:05 UTC
  • mfrom: (1.1.3 upstream) (0.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20110425100905-exm7dfvi2v5ick02
Tags: 0.27-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
#undef dout_prefix
27
27
#define dout_prefix _prefix(mdcache->mds->get_nodeid(), inode, srnode.seq, this)
28
28
static ostream& _prefix(int whoami, CInode *inode, uint64_t seq, SnapRealm *realm) {
29
 
  return *_dout << dbeginl
30
 
                << " mds" << whoami
 
29
  return *_dout << " mds" << whoami
31
30
                << ".cache.snaprealm(" << inode->ino()
32
31
                << " seq " << seq << " " << realm << ") ";
33
32
}
238
237
 
239
238
void SnapRealm::get_snap_info(map<snapid_t,SnapInfo*>& infomap, snapid_t first, snapid_t last)
240
239
{
241
 
  dout(10) << "get_snap_info snaps " << get_snaps() << dendl;
 
240
  const set<snapid_t>& snaps = get_snaps();
 
241
  dout(10) << "get_snap_info snaps " << snaps << dendl;
242
242
 
243
243
  // include my snaps within interval [first,last]
244
244
  for (map<snapid_t, SnapInfo>::iterator p = srnode.snaps.lower_bound(first); // first element >= first