apache2 license + headers
git-svn-id: svn+ssh://svn.corp.yahoo.com/yahoo/yrl/labs/pnuts/code/logstore@3593 8dad8b1f-cf64-0410-95b6-bcf113ffbcfe
This commit is contained in:
parent
6368f16bc0
commit
d9a8d6f998
54 changed files with 1381 additions and 559 deletions
|
@ -1,6 +1,20 @@
|
|||
/*
|
||||
* lsm_microbenchmarks.cpp
|
||||
*
|
||||
* Copyright 2011-2012 Yahoo! Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
* Created on: Aug 22, 2011
|
||||
* Author: sears
|
||||
*/
|
||||
|
|
|
@ -1,6 +1,21 @@
|
|||
/*
|
||||
* tcpclient_noop.cpp
|
||||
*
|
||||
*
|
||||
* Copyright 2010-2012 Yahoo! Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
* Created on: Feb 23, 2010
|
||||
* Author: sears
|
||||
*/
|
||||
|
|
|
@ -1,3 +1,22 @@
|
|||
/*
|
||||
* bloomFilter.c
|
||||
*
|
||||
* Copyright 2010-2012 Yahoo! Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
* Author: sears
|
||||
*/
|
||||
#include <assert.h>
|
||||
#include <math.h>
|
||||
#include <stdio.h>
|
||||
|
|
|
@ -1,3 +1,22 @@
|
|||
/*
|
||||
* bloomFilter.h
|
||||
*
|
||||
* Copyright 2010-2012 Yahoo! Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
* Author: sears
|
||||
*/
|
||||
#ifndef BLOOM_FILTER_H
|
||||
#define BLOOM_FILTER_H
|
||||
|
||||
|
|
25
datapage.cpp
25
datapage.cpp
|
@ -1,3 +1,22 @@
|
|||
/*
|
||||
* datapage.cpp
|
||||
*
|
||||
* Copyright 2009-2012 Yahoo! Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
* Author: makdere
|
||||
*/
|
||||
#include "logstore.h"
|
||||
#include "datapage.h"
|
||||
#include "regionAllocator.h"
|
||||
|
@ -273,8 +292,10 @@ bool DataPage::append(datatuple const * dat)
|
|||
// can happen once per giant object.
|
||||
accept_tuple = false;
|
||||
} else {
|
||||
// ... by a little bit. Accept tuple if it fits on this page.
|
||||
accept_tuple = (((write_offset_-1) & ~(PAGE_SIZE-1)) == (((write_offset_ + tup_len)-1) & ~(PAGE_SIZE-1)));
|
||||
// ... by a little bit.
|
||||
accept_tuple = true;
|
||||
//Accept tuple if it fits on this page, or if it's big..
|
||||
//accept_tuple = (((write_offset_-1) & ~(PAGE_SIZE-1)) == (((write_offset_ + tup_len)-1) & ~(PAGE_SIZE-1)));
|
||||
}
|
||||
} else {
|
||||
if(write_offset_ + tup_len < (initial_page_count_ * PAGE_SIZE)) {
|
||||
|
|
19
datapage.h
19
datapage.h
|
@ -1,3 +1,22 @@
|
|||
/*
|
||||
* datapage.h
|
||||
*
|
||||
* Copyright 2009-2012 Yahoo! Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
* Author: makdere
|
||||
*/
|
||||
#ifndef _SIMPLE_DATA_PAGE_H_
|
||||
#define _SIMPLE_DATA_PAGE_H_
|
||||
|
||||
|
|
19
datatuple.h
19
datatuple.h
|
@ -1,3 +1,22 @@
|
|||
/*
|
||||
* datatuple.h
|
||||
*
|
||||
* Copyright 2010-2012 Yahoo! Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
* Author: sears
|
||||
*/
|
||||
#include <network.h>
|
||||
|
||||
#ifndef _DATATUPLE_H_
|
||||
|
|
|
@ -1,6 +1,20 @@
|
|||
/*
|
||||
* diskTreeComponent.cpp
|
||||
*
|
||||
* Copyright 2010-2012 Yahoo! Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
* Created on: Feb 18, 2010
|
||||
* Author: sears
|
||||
*/
|
||||
|
|
|
@ -1,6 +1,20 @@
|
|||
/*
|
||||
* diskTreeComponent.h
|
||||
*
|
||||
* Copyright 2010-2012 Yahoo! Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
* Created on: Feb 18, 2010
|
||||
* Author: sears
|
||||
*/
|
||||
|
|
|
@ -1,3 +1,21 @@
|
|||
/*
|
||||
* diskTreeComponent.cpp
|
||||
*
|
||||
* Copyright 2009-2012 Yahoo! Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
*/
|
||||
#include <sstream>
|
||||
|
||||
#include "logserver.h"
|
||||
|
|
22
logserver.h
22
logserver.h
|
@ -1,3 +1,21 @@
|
|||
/*
|
||||
* logserver.h
|
||||
*
|
||||
* Copyright 2009-2012 Yahoo! Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
*/
|
||||
#ifndef _LOGSERVER_H_
|
||||
#define _LOGSERVER_H_
|
||||
|
||||
|
@ -11,10 +29,6 @@
|
|||
|
||||
#include "logstore.h"
|
||||
|
||||
#undef begin
|
||||
#undef try
|
||||
#undef end
|
||||
|
||||
#define STATS_ENABLED 1
|
||||
|
||||
#ifdef STATS_ENABLED
|
||||
|
|
21
logstore.cpp
21
logstore.cpp
|
@ -1,3 +1,21 @@
|
|||
/*
|
||||
* logstore.cpp
|
||||
*
|
||||
* Copyright 2009-2012 Yahoo! Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
*/
|
||||
#include "logstore.h"
|
||||
#include "merger.h"
|
||||
|
||||
|
@ -9,9 +27,6 @@
|
|||
#include <stasis/logger/filePool.h>
|
||||
#include "mergeStats.h"
|
||||
|
||||
#undef try
|
||||
#undef end
|
||||
|
||||
static inline double tv_to_double(struct timeval tv)
|
||||
{
|
||||
return static_cast<double>(tv.tv_sec) +
|
||||
|
|
20
logstore.h
20
logstore.h
|
@ -1,9 +1,25 @@
|
|||
/*
|
||||
* logstore.h
|
||||
*
|
||||
* Copyright 2009-2012 Yahoo! Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
*/
|
||||
#ifndef _LOGSTORE_H_
|
||||
#define _LOGSTORE_H_
|
||||
|
||||
#include <stasis/common.h>
|
||||
#undef try
|
||||
#undef end
|
||||
|
||||
#include <vector>
|
||||
|
||||
|
|
|
@ -1,8 +1,25 @@
|
|||
/*
|
||||
* newserver.cpp
|
||||
*
|
||||
* Copyright 2010-2012 Yahoo! Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
* Created on: Aug 11, 2010
|
||||
* Author: sears
|
||||
*/
|
||||
#include <stasis/transactional.h>
|
||||
#include <stasis/logger/safeWrites.h>
|
||||
#undef end
|
||||
#undef try
|
||||
#undef begin
|
||||
|
||||
#include <signal.h>
|
||||
|
||||
|
@ -11,13 +28,6 @@
|
|||
#include "logstore.h"
|
||||
#include "simpleServer.h"
|
||||
|
||||
/*
|
||||
* newserver.cpp
|
||||
*
|
||||
* Created on: Aug 11, 2010
|
||||
* Author: sears
|
||||
*/
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
signal(SIGPIPE, SIG_IGN);
|
||||
|
|
|
@ -1,3 +1,22 @@
|
|||
/*
|
||||
* server.cpp
|
||||
*
|
||||
* Copyright 2009-2012 Yahoo! Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
* Author: makdere
|
||||
*/
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <iostream>
|
||||
|
@ -15,9 +34,6 @@
|
|||
|
||||
#include <csignal>
|
||||
|
||||
#undef begin
|
||||
#undef end
|
||||
|
||||
logserver *lserver=0;
|
||||
merge_scheduler *mscheduler=0;
|
||||
|
||||
|
|
|
@ -1,3 +1,21 @@
|
|||
/*
|
||||
* memTreeComponent.cpp
|
||||
*
|
||||
* Copyright 2009-2012 Yahoo! Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
*/
|
||||
#include "memTreeComponent.h"
|
||||
#include "datatuple.h"
|
||||
|
||||
|
|
|
@ -1,3 +1,21 @@
|
|||
/*
|
||||
* memTreeComponent.h
|
||||
*
|
||||
* Copyright 2009-2012 Yahoo! Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
*/
|
||||
#ifndef _MEMTREECOMPONENT_H_
|
||||
#define _MEMTREECOMPONENT_H_
|
||||
#include <set>
|
||||
|
|
|
@ -1,6 +1,20 @@
|
|||
/*
|
||||
* mergeManager.cpp
|
||||
*
|
||||
* Copyright 2010-2012 Yahoo! Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
* Created on: May 19, 2010
|
||||
* Author: sears
|
||||
*/
|
||||
|
@ -11,8 +25,6 @@
|
|||
#include "math.h"
|
||||
#include "time.h"
|
||||
#include <stasis/transactional.h>
|
||||
#undef try
|
||||
#undef end
|
||||
|
||||
#define LEGACY_BACKPRESSURE
|
||||
|
||||
|
|
|
@ -1,6 +1,20 @@
|
|||
/*
|
||||
* mergeManager.h
|
||||
*
|
||||
* Copyright 2010-2012 Yahoo! Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
* Created on: May 19, 2010
|
||||
* Author: sears
|
||||
*/
|
||||
|
@ -9,8 +23,6 @@
|
|||
#define MERGEMANAGER_H_
|
||||
|
||||
#include <stasis/common.h>
|
||||
#undef try
|
||||
#undef end
|
||||
#include <sys/time.h>
|
||||
#include <stdio.h>
|
||||
#include <datatuple.h>
|
||||
|
|
|
@ -1,6 +1,20 @@
|
|||
/*
|
||||
* mergeStats.cpp
|
||||
*
|
||||
* Copyright 2010-2012 Yahoo! Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
* Created on: May 18, 2010
|
||||
* Author: sears
|
||||
*/
|
||||
|
|
18
mergeStats.h
18
mergeStats.h
|
@ -1,6 +1,20 @@
|
|||
/*
|
||||
* mergeStats.h
|
||||
*
|
||||
* Copyright 2010-2012 Yahoo! Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
* Created on: Apr 27, 2010
|
||||
* Author: sears
|
||||
*/
|
||||
|
@ -9,8 +23,6 @@
|
|||
#define MERGESTATS_H_
|
||||
|
||||
#include <stasis/common.h>
|
||||
#undef try
|
||||
#undef end
|
||||
|
||||
#define EXTENDED_STATS 1
|
||||
|
||||
|
@ -22,8 +34,6 @@
|
|||
#include <mergeManager.h> // XXX for double_to_ts, etc... create a util class.
|
||||
|
||||
#include <stasis/transactional.h>
|
||||
#undef try
|
||||
#undef end
|
||||
|
||||
class mergeStats {
|
||||
private:
|
||||
|
|
20
merger.cpp
20
merger.cpp
|
@ -1,9 +1,25 @@
|
|||
/*
|
||||
* merger.cpp
|
||||
*
|
||||
* Copyright 2010-2012 Yahoo! Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
*/
|
||||
#include <math.h>
|
||||
#include "merger.h"
|
||||
|
||||
#include <stasis/transactional.h>
|
||||
#undef try
|
||||
#undef end
|
||||
|
||||
static void* memMerge_thr(void* arg) {
|
||||
return ((merge_scheduler*)arg)->memMergeThread();
|
||||
|
|
20
merger.h
20
merger.h
|
@ -1,11 +1,27 @@
|
|||
/*
|
||||
* merger.h
|
||||
*
|
||||
* Copyright 2010-2012 Yahoo! Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
*/
|
||||
#ifndef _MERGER_H_
|
||||
#define _MERGER_H_
|
||||
|
||||
#include "logstore.h"
|
||||
|
||||
#include <stasis/common.h>
|
||||
#undef try
|
||||
#undef end
|
||||
|
||||
class merge_scheduler {
|
||||
public:
|
||||
|
|
14
network.h
14
network.h
|
@ -1,6 +1,20 @@
|
|||
/*
|
||||
* network.h
|
||||
*
|
||||
* Copyright 2010-2012 Yahoo! Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
* Created on: Feb 2, 2010
|
||||
* Author: sears
|
||||
*/
|
||||
|
|
|
@ -1,6 +1,20 @@
|
|||
/*
|
||||
* regionAllocator.h
|
||||
*
|
||||
* Copyright 2010-2012 Yahoo! Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
* Created on: Mar 9, 2010
|
||||
* Author: sears
|
||||
*/
|
||||
|
@ -9,8 +23,6 @@
|
|||
#define REGIONALLOCATOR_H_
|
||||
|
||||
#include <stasis/transactional.h>
|
||||
#undef try
|
||||
#undef end
|
||||
|
||||
class RegionAllocator
|
||||
{
|
||||
|
|
|
@ -1,6 +1,20 @@
|
|||
/*
|
||||
* requestDispatch.cpp
|
||||
*
|
||||
* Copyright 2010-2012 Yahoo! Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
* Created on: Aug 11, 2010
|
||||
* Author: sears
|
||||
*/
|
||||
|
|
|
@ -1,8 +1,24 @@
|
|||
/*
|
||||
* LSMServerHandler.cc
|
||||
*
|
||||
* Copyright 2011-2012 Yahoo! Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
* Author: sears
|
||||
*/
|
||||
#include <stasis/transactional.h>
|
||||
#include <stasis/logger/safeWrites.h>
|
||||
#undef end
|
||||
#undef try
|
||||
#undef begin
|
||||
|
||||
#include <iostream>
|
||||
#include <signal.h>
|
||||
|
|
|
@ -1,3 +1,20 @@
|
|||
/*
|
||||
* LSMServerHandler.h
|
||||
*
|
||||
* Copyright 2011-2012 Yahoo! Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#include "MapKeeper.h"
|
||||
#include <protocol/TBinaryProtocol.h>
|
||||
#include <transport/TServerSocket.h>
|
||||
|
|
|
@ -1,6 +1,20 @@
|
|||
/*
|
||||
* simpleServer.cpp
|
||||
*
|
||||
* Copyright 2010-2012 Yahoo! Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
* Created on: Aug 11, 2010
|
||||
* Author: sears
|
||||
*/
|
||||
|
|
|
@ -1,6 +1,20 @@
|
|||
/*
|
||||
* simpleServer.h
|
||||
*
|
||||
* Copyright 2010-2012 Yahoo! Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
* Created on: Aug 11, 2010
|
||||
* Author: sears
|
||||
*/
|
||||
|
|
|
@ -1,6 +1,20 @@
|
|||
/*
|
||||
* tcpclient.cpp
|
||||
*
|
||||
* Copyright 2010-2012 Yahoo! Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
* Created on: Feb 2, 2010
|
||||
* Author: sears
|
||||
*/
|
||||
|
|
14
tcpclient.h
14
tcpclient.h
|
@ -1,6 +1,20 @@
|
|||
/*
|
||||
* tcpclient.h
|
||||
*
|
||||
* Copyright 2010-2012 Yahoo! Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
* Created on: Feb 2, 2010
|
||||
* Author: sears
|
||||
*/
|
||||
|
|
|
@ -1,5 +1,19 @@
|
|||
/*
|
||||
* check_bloomFilter.c
|
||||
* check_bloomFilter.cpp
|
||||
*
|
||||
* Copyright 2010-2012 Yahoo! Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
* Created on: Oct 2, 2010
|
||||
* Author: sears
|
||||
|
|
|
@ -1,3 +1,22 @@
|
|||
/*
|
||||
* check_datapage.cpp
|
||||
*
|
||||
* Copyright 2009-2012 Yahoo! Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
* Author: makdere
|
||||
*/
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <iostream>
|
||||
|
|
|
@ -1,9 +1,23 @@
|
|||
|
||||
/*
|
||||
* check_gen.cpp
|
||||
*
|
||||
* Copyright 2010-2012 Yahoo! Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
* Author: sears
|
||||
*/
|
||||
#include <stasis/transactional.h>
|
||||
#undef begin
|
||||
#undef end
|
||||
|
||||
|
||||
#include "logstore.h"
|
||||
#include "regionAllocator.h"
|
||||
|
||||
|
|
|
@ -1,4 +1,22 @@
|
|||
|
||||
/*
|
||||
* check_logtable.cpp
|
||||
*
|
||||
* Copyright 2009-2012 Yahoo! Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
* Author: makdere
|
||||
*/
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <iostream>
|
||||
|
@ -14,8 +32,6 @@
|
|||
#include <time.h>
|
||||
|
||||
#include <stasis/transactional.h>
|
||||
#undef begin
|
||||
#undef end
|
||||
|
||||
#include "check_util.h"
|
||||
|
||||
|
|
|
@ -1,4 +1,22 @@
|
|||
|
||||
/*
|
||||
* check_logtree.cpp
|
||||
*
|
||||
* Copyright 2009-2012 Yahoo! Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
* Author: makdere
|
||||
*/
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <iostream>
|
||||
|
|
|
@ -1,3 +1,22 @@
|
|||
/*
|
||||
* check_mmerge.cpp
|
||||
*
|
||||
* Copyright 2009-2012 Yahoo! Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
* Author: makdere
|
||||
*/
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <iostream>
|
||||
|
|
|
@ -1,3 +1,22 @@
|
|||
/*
|
||||
* check_datapage.cpp
|
||||
*
|
||||
* Copyright 2009-2012 Yahoo! Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
* Author: makdere
|
||||
*/
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <iostream>
|
||||
|
@ -14,8 +33,6 @@
|
|||
#include <time.h>
|
||||
|
||||
#include <stasis/transactional.h>
|
||||
#undef begin
|
||||
#undef end
|
||||
|
||||
#include "check_util.h"
|
||||
|
||||
|
|
|
@ -1,3 +1,22 @@
|
|||
/*
|
||||
* check_mergetuple.cpp
|
||||
*
|
||||
* Copyright 2009-2012 Yahoo! Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
* Author: makdere
|
||||
*/
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <iostream>
|
||||
|
@ -14,8 +33,6 @@
|
|||
#include <time.h>
|
||||
|
||||
#include <stasis/transactional.h>
|
||||
#undef begin
|
||||
#undef end
|
||||
|
||||
#include "check_util.h"
|
||||
|
||||
|
|
|
@ -1,3 +1,22 @@
|
|||
/*
|
||||
* check_rbtree.cpp
|
||||
*
|
||||
* Copyright 2009-2012 Yahoo! Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
* Author: makdere
|
||||
*/
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <iostream>
|
||||
|
@ -13,9 +32,6 @@
|
|||
#include <sys/time.h>
|
||||
#include <time.h>
|
||||
|
||||
#undef begin
|
||||
#undef end
|
||||
|
||||
#include "check_util.h"
|
||||
|
||||
void insertProbeIter(size_t NUM_ENTRIES)
|
||||
|
|
|
@ -1,6 +1,20 @@
|
|||
/*
|
||||
* check_tcpbulkinsert.cpp
|
||||
*
|
||||
* Copyright 2010-2012 Yahoo! Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
* Created on: Aug 27, 2010
|
||||
* Author: sears
|
||||
*/
|
||||
|
|
|
@ -1,3 +1,22 @@
|
|||
/*
|
||||
* check_tcpclient.cpp
|
||||
*
|
||||
* Copyright 2009-2012 Yahoo! Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
* Author: makdere
|
||||
*/
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <iostream>
|
||||
|
|
|
@ -1,6 +1,20 @@
|
|||
/*
|
||||
* check_testAndSet.cpp
|
||||
*
|
||||
* Copyright 2010-2012 Yahoo! Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
* Created on: Sep 16, 2010
|
||||
* Author: sears
|
||||
*/
|
||||
|
|
|
@ -1,6 +1,20 @@
|
|||
/*
|
||||
* check_util.h
|
||||
*
|
||||
* Copyright 2010-2012 Yahoo! Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
* Created on: Jan 25, 2010
|
||||
* Author: sears
|
||||
*/
|
||||
|
|
|
@ -1,3 +1,21 @@
|
|||
/*
|
||||
* tuplemerger.cpp
|
||||
*
|
||||
* Copyright 2009-2012 Yahoo! Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
*/
|
||||
#include "tuplemerger.h"
|
||||
#include "logstore.h"
|
||||
|
||||
|
|
|
@ -1,3 +1,21 @@
|
|||
/*
|
||||
* merger.cpp
|
||||
*
|
||||
* Copyright 2009-2012 Yahoo! Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
*/
|
||||
#ifndef _TUPLE_MERGER_H_
|
||||
#define _TUPLE_MERGER_H_
|
||||
|
||||
|
|
|
@ -1,6 +1,20 @@
|
|||
/*
|
||||
* change_log_mode.cpp
|
||||
*
|
||||
* Copyright 2011-2012 Yahoo! Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
* Created on: Apr 20, 2011
|
||||
* Author: sears
|
||||
*/
|
||||
|
|
|
@ -1,6 +1,20 @@
|
|||
/*
|
||||
* copy_database.cpp
|
||||
*
|
||||
* Copyright 2010-2012 Yahoo! Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
* Created on: Aug 30, 2010
|
||||
* Author: sears
|
||||
*/
|
||||
|
|
|
@ -1,6 +1,20 @@
|
|||
/*
|
||||
* dump_blockmap.cc
|
||||
*
|
||||
* Copyright 2010-2012 Yahoo! Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
* Created on: Feb 16, 2010
|
||||
* Author: sears
|
||||
*/
|
||||
|
|
|
@ -1,6 +1,20 @@
|
|||
/*
|
||||
* histogram.cpp
|
||||
*
|
||||
* Copyright 2010-2012 Yahoo! Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
* Created on: Mar 2, 2010
|
||||
* Author: sears
|
||||
*/
|
||||
|
|
|
@ -1,6 +1,20 @@
|
|||
/*
|
||||
* space_usage.cpp
|
||||
*
|
||||
* Copyright 2010-2012 Yahoo! Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
* Created on: Mar 1, 2010
|
||||
* Author: sears
|
||||
*/
|
||||
|
|
|
@ -1,6 +1,20 @@
|
|||
/*
|
||||
* util_open_conn.h
|
||||
*
|
||||
* Copyright 2010-2012 Yahoo! Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
* Created on: Mar 1, 2010
|
||||
* Author: sears
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue