Re: C++ api for librados 0.25

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 24 Feb 2011, Colin McCabe wrote:
> > Also, what is the constructor Pool(Rados *rados_, pool_t *pool_)
> > intended to be used for? I don't see a method to get a pool_t from
> > this API.
> 
> Rados has to create Pools somehow, and that means they need a constructor.
> 
> It could be hidden deeper using the usual C++ bag of tricks (like
> private constructors and friend functions), but it didn't seem
> necessary.

What about a private constructor, and then in Rados have

	Pool *pool_open(const char *name);

IMO that's less weird than

	Rados::Pool *p = new Rados::Pool(...);
	rados->pool_open(name, p);

sage
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux