Removing the typename keyword to make declarations compile with gcc 4.1.2 after a bunch of types are no longer templates
git-svn-id: svn+ssh://svn.corp.yahoo.com/yahoo/yrl/labs/pnuts/code/logstore@2672 8dad8b1f-cf64-0410-95b6-bcf113ffbcfe
This commit is contained in:
parent
d9e445df06
commit
5524b96bd9
5 changed files with 13 additions and 13 deletions
|
@ -323,7 +323,7 @@ bool DataPage::append(datatuple const * dat)
|
|||
return succ;
|
||||
}
|
||||
|
||||
bool DataPage::recordRead(const typename datatuple::key_t key, size_t keySize, datatuple ** buf)
|
||||
bool DataPage::recordRead(const datatuple::key_t key, size_t keySize, datatuple ** buf)
|
||||
{
|
||||
iterator itr(this, NULL);
|
||||
|
||||
|
|
|
@ -82,7 +82,7 @@ public:
|
|||
}
|
||||
|
||||
bool append(datatuple const * dat);
|
||||
bool recordRead(const typename datatuple::key_t key, size_t keySize, datatuple ** buf);
|
||||
bool recordRead(const datatuple::key_t key, size_t keySize, datatuple ** buf);
|
||||
|
||||
inline uint16_t recordCount();
|
||||
|
||||
|
|
12
logstore.h
12
logstore.h
|
@ -414,8 +414,8 @@ public:
|
|||
logtable * ltable;
|
||||
uint64_t epoch;
|
||||
typedef mergeManyIterator<
|
||||
typename memTreeComponent::batchedRevalidatingIterator,
|
||||
typename memTreeComponent::iterator> inner_merge_it_t;
|
||||
memTreeComponent::batchedRevalidatingIterator,
|
||||
memTreeComponent::iterator> inner_merge_it_t;
|
||||
typedef mergeManyIterator<
|
||||
inner_merge_it_t,
|
||||
diskTreeComponent::iterator> merge_it_t;
|
||||
|
@ -444,8 +444,8 @@ public:
|
|||
|
||||
|
||||
void validate() {
|
||||
typename memTreeComponent::batchedRevalidatingIterator * c0_it;
|
||||
typename memTreeComponent::iterator *c0_mergeable_it[1];
|
||||
memTreeComponent::batchedRevalidatingIterator * c0_it;
|
||||
memTreeComponent::iterator *c0_mergeable_it[1];
|
||||
diskTreeComponent::iterator * disk_it[4];
|
||||
epoch = ltable->get_epoch();
|
||||
|
||||
|
@ -458,8 +458,8 @@ public:
|
|||
t = NULL;
|
||||
}
|
||||
|
||||
c0_it = new typename memTreeComponent::batchedRevalidatingIterator(ltable->get_tree_c0(), 100, <able->rb_mut, t);
|
||||
c0_mergeable_it[0] = new typename memTreeComponent::iterator (ltable->get_tree_c0_mergeable(), t);
|
||||
c0_it = new memTreeComponent::batchedRevalidatingIterator(ltable->get_tree_c0(), 100, <able->rb_mut, t);
|
||||
c0_mergeable_it[0] = new memTreeComponent::iterator (ltable->get_tree_c0_mergeable(), t);
|
||||
if(ltable->get_tree_c1_prime()) {
|
||||
disk_it[0] = ltable->get_tree_c1_prime()->open_iterator(t);
|
||||
} else {
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
|
||||
void memTreeComponent::tearDownTree(rbtree_ptr_t tree) {
|
||||
datatuple * t = 0;
|
||||
typename rbtree_t::iterator old;
|
||||
for(typename rbtree_t::iterator delitr = tree->begin();
|
||||
rbtree_t::iterator old;
|
||||
for(rbtree_t::iterator delitr = tree->begin();
|
||||
delitr != tree->end();
|
||||
delitr++) {
|
||||
if(t) {
|
||||
|
|
|
@ -20,7 +20,7 @@ public:
|
|||
class iterator
|
||||
{
|
||||
private:
|
||||
typedef typename rbtree_t::const_iterator MTITER;
|
||||
typedef rbtree_t::const_iterator MTITER;
|
||||
|
||||
public:
|
||||
iterator( rbtree_t *s )
|
||||
|
@ -84,7 +84,7 @@ public:
|
|||
class revalidatingIterator
|
||||
{
|
||||
private:
|
||||
typedef typename rbtree_t::const_iterator MTITER;
|
||||
typedef rbtree_t::const_iterator MTITER;
|
||||
|
||||
public:
|
||||
revalidatingIterator( rbtree_t *s, pthread_mutex_t * rb_mut ) : s_(s), mut_(rb_mut) {
|
||||
|
@ -153,7 +153,7 @@ public:
|
|||
class batchedRevalidatingIterator
|
||||
{
|
||||
private:
|
||||
typedef typename rbtree_t::const_iterator MTITER;
|
||||
typedef rbtree_t::const_iterator MTITER;
|
||||
|
||||
|
||||
void populate_next_ret_impl(std::_Rb_tree_const_iterator<datatuple*>/*MTITER*/ it) {
|
||||
|
|
Loading…
Reference in a new issue