Skip to content

Instantly share code, notes, and snippets.

@daverigby
Last active March 3, 2016 16:32
Show Gist options
  • Save daverigby/565426e0b50cefcd106e to your computer and use it in GitHub Desktop.
Save daverigby/565426e0b50cefcd106e to your computer and use it in GitHub Desktop.
For a given Git SHA, show only the lines in the commit which were not moved from elsewhere, i.e. are new. Useful for verifying patches which should just move code from A -> B and not change it.
‡ git show --stat 7c8aa164|grep \| | cut -f 2 -d ' ' | xargs -n1 git blame -M -C | grep 7c8aa164
7c8aa164 (Daniel Owen 2016-03-02 15:31:34 +0000 138) src/dcp/dcpconnmap.cc
7c8aa164 (Daniel Owen 2016-03-02 15:31:34 +0000 169) src/tapconnmap.cc
7c8aa164 (Daniel Owen 2016-03-02 15:31:34 +0000 198) src/dcp/dcpconnmap.cc
7c8aa164 (Daniel Owen 2016-03-02 15:31:34 +0000 225) src/tapconnmap.cc
7c8aa164 src/backfill.h (Daniel Owen 2016-03-02 15:31:34 +0000 34) #include "tapconnmap.h"
7c8aa164 src/checkpoint_remover.cc (Daniel Owen 2016-03-02 15:31:34 +0000 21) #include "dcp/dcpconnmap.h"
7c8aa164 src/checkpoint_remover.cc (Daniel Owen 2016-03-02 15:31:34 +0000 26) #include "tapconnmap.h"
7c8aa164 src/connmap.cc (Daniel Owen 2016-03-02 15:31:34 +0000 38) * A Callback task for connection notifier
7c8aa164 src/connmap.h (Daniel Owen 2016-03-02 15:31:34 +0000 18) #pragma once
7c8aa164 src/dcp/backfill-manager.cc (Daniel Owen 2016-03-02 15:31:34 +0000 23) #include "dcp/dcpconnmap.h"
7c8aa164 src/dcp/consumer.cc (Daniel Owen 2016-03-02 15:31:34 +0000 23) #include "dcp/dcpconnmap.h"
7c8aa164 src/dcp/dcpconnmap.cc (Daniel Owen 2016-03-02 15:31:34 +0000 27) #include "dcp/backfill-manager.h"
7c8aa164 src/dcp/dcpconnmap.cc (Daniel Owen 2016-03-02 15:31:34 +0000 28) #include "dcp/consumer.h"
7c8aa164 src/dcp/dcpconnmap.cc (Daniel Owen 2016-03-02 15:31:34 +0000 29) #include "dcp/dcpconnmap.h"
7c8aa164 src/dcp/dcpconnmap.cc (Daniel Owen 2016-03-02 15:31:34 +0000 30) #include "dcp/producer.h"
7c8aa164 src/dcp/dcpconnmap.cc (Daniel Owen 2016-03-02 15:31:34 +0000 31)
7c8aa164 src/dcp/dcpconnmap.cc (Daniel Owen 2016-03-02 15:31:34 +0000 36) DcpConnMap::DcpConnMap(EventuallyPersistentEngine &e)
7c8aa164 src/dcp/dcpconnmap.cc (Daniel Owen 2016-03-02 15:31:34 +0000 37) : ConnMap(e),
7c8aa164 src/dcp/dcpconnmap.cc (Daniel Owen 2016-03-02 15:31:34 +0000 38) aggrDcpConsumerBufferSize(0) {
7c8aa164 src/dcp/dcpconnmap.cc (Daniel Owen 2016-03-02 15:31:34 +0000 42) engine.getConfiguration().getDcpMinCompressionRatio());
7c8aa164 src/dcp/dcpconnmap.cc (Daniel Owen 2016-03-02 15:31:34 +0000 76) LOG(EXTENSION_LOG_DEBUG, "(vb %d) A DCP passive stream "
7c8aa164 src/dcp/dcpconnmap.cc (Daniel Owen 2016-03-02 15:31:34 +0000 77) "is already exists for the vbucket in connection: %s",
7c8aa164 src/dcp/dcpconnmap.cc (Daniel Owen 2016-03-02 15:31:34 +0000 78) vbucket, dcpConsumer->logHeader());
7c8aa164 src/dcp/dcpconnmap.cc (Daniel Owen 2016-03-02 15:31:34 +0000 79) return true;
7c8aa164 src/dcp/dcpconnmap.cc (Daniel Owen 2016-03-02 15:31:34 +0000 145) LockHolder rlh(releaseLock);
7c8aa164 src/dcp/dcpconnmap.cc (Daniel Owen 2016-03-02 15:31:34 +0000 146) for (auto &ii : toRelease) {
7c8aa164 src/dcp/dcpconnmap.cc (Daniel Owen 2016-03-02 15:31:34 +0000 147) LOG(EXTENSION_LOG_NOTICE, "Clean up \"%s\"", ii->getName().c_str());
7c8aa164 src/dcp/dcpconnmap.cc (Daniel Owen 2016-03-02 15:31:34 +0000 148) ii->releaseReference();
7c8aa164 src/dcp/dcpconnmap.cc (Daniel Owen 2016-03-02 15:31:34 +0000 149) }
7c8aa164 src/dcp/dcpconnmap.cc (Daniel Owen 2016-03-02 15:31:34 +0000 150) }
7c8aa164 src/dcp/dcpconnmap.cc (Daniel Owen 2016-03-02 15:31:34 +0000 177) vbucket, state);
7c8aa164 src/dcp/dcpconnmap.cc (Daniel Owen 2016-03-02 15:31:34 +0000 293) static_cast<Notifiable*>(static_cast<Producer*>((*it).get()));
7c8aa164 src/dcp/dcpconnmap.cc (Daniel Owen 2016-03-02 15:31:34 +0000 375) static_cast<double>(numBackfillsMemThreshold)/100;
7c8aa164 src/dcp/dcpconnmap.cc (Daniel Owen 2016-03-02 15:31:34 +0000 380) std::max(static_cast<size_t>(1),
7c8aa164 src/dcp/dcpconnmap.cc (Daniel Owen 2016-03-02 15:31:34 +0000 381) std::min(max, static_cast<size_t>(numBackfillsThreshold)));
7c8aa164 src/dcp/dcpconnmap.h (Daniel Owen 2016-03-02 15:31:34 +0000 18) #pragma once
7c8aa164 src/dcp/dcpconnmap.h (Daniel Owen 2016-03-02 15:31:34 +0000 19)
7c8aa164 src/dcp/dcpconnmap.h (Daniel Owen 2016-03-02 15:31:34 +0000 20) #include "config.h"
7c8aa164 src/dcp/dcpconnmap.h (Daniel Owen 2016-03-02 15:31:34 +0000 21)
7c8aa164 src/dcp/dcpconnmap.h (Daniel Owen 2016-03-02 15:31:34 +0000 22) #include <climits>
7c8aa164 src/dcp/dcpconnmap.h (Daniel Owen 2016-03-02 15:31:34 +0000 23) #include <list>
7c8aa164 src/dcp/dcpconnmap.h (Daniel Owen 2016-03-02 15:31:34 +0000 24) #include <string>
7c8aa164 src/dcp/dcpconnmap.h (Daniel Owen 2016-03-02 15:31:34 +0000 29) #include "atomicqueue.h"
7c8aa164 src/dcp/dcpconnmap.h (Daniel Owen 2016-03-02 15:31:34 +0000 30) #include "connmap.h"
7c8aa164 src/dcp/dcpconnmap.h (Daniel Owen 2016-03-02 15:31:34 +0000 31) #include "dcp/consumer.h"
7c8aa164 src/dcp/dcpconnmap.h (Daniel Owen 2016-03-02 15:31:34 +0000 32) #include "dcp/producer.h"
7c8aa164 src/dcp/dcpconnmap.h (Daniel Owen 2016-03-02 15:31:34 +0000 33)
7c8aa164 src/dcp/dcpconnmap.h (Daniel Owen 2016-03-02 15:31:34 +0000 106) individual conn stats from conn lists please use ConnStatBuilder */
7c8aa164 src/dcp/producer.cc (Daniel Owen 2016-03-02 15:31:34 +0000 28) #include "dcp/dcpconnmap.h"
7c8aa164 src/ep.cc (Daniel Owen 2016-03-02 15:31:34 +0000 36) #include "dcp/dcpconnmap.h"
7c8aa164 src/ep.cc (Daniel Owen 2016-03-02 15:31:34 +0000 51) #include "tapconnmap.h"
7c8aa164 src/ep_engine.cc (Daniel Owen 2016-03-02 15:31:34 +0000 55) #include "dcp/dcpconnmap.h"
7c8aa164 src/item_pager.cc (Daniel Owen 2016-03-02 15:31:34 +0000 21) #include "dcp/dcpconnmap.h"
7c8aa164 src/item_pager.cc (Daniel Owen 2016-03-02 15:31:34 +0000 24) #include "tapconnmap.h"
7c8aa164 src/tapconnmap.cc (Daniel Owen 2016-03-02 15:31:34 +0000 22) #include <set>
7c8aa164 src/tapconnmap.cc (Daniel Owen 2016-03-02 15:31:34 +0000 23) #include <string>
7c8aa164 src/tapconnmap.cc (Daniel Owen 2016-03-02 15:31:34 +0000 24) #include <vector>
7c8aa164 src/tapconnmap.cc (Daniel Owen 2016-03-02 15:31:34 +0000 25) #include <map>
7c8aa164 src/tapconnmap.cc (Daniel Owen 2016-03-02 15:31:34 +0000 30) #include "tapconnmap.h"
7c8aa164 src/tapconnmap.cc (Daniel Owen 2016-03-02 15:31:34 +0000 31)
7c8aa164 src/tapconnmap.cc (Daniel Owen 2016-03-02 15:31:34 +0000 40) : GlobalTask(&e, Priority::TapConnectionReaperPriority),
7c8aa164 src/tapconnmap.cc (Daniel Owen 2016-03-02 15:31:34 +0000 41) connMap(cm), connection(conn) {
7c8aa164 src/tapconnmap.cc (Daniel Owen 2016-03-02 15:31:34 +0000 69) : connmap_(tc) {
7c8aa164 src/tapconnmap.cc (Daniel Owen 2016-03-02 15:31:34 +0000 82) TapConnMap::TapConnMap(EventuallyPersistentEngine &e)
7c8aa164 src/tapconnmap.cc (Daniel Owen 2016-03-02 15:31:34 +0000 83) : ConnMap(e), nextNoop_(0) {
7c8aa164 src/tapconnmap.cc (Daniel Owen 2016-03-02 15:31:34 +0000 300) "TapConnMap::incrBackfillRemaining: name (which is " + name +
7c8aa164 src/tapconnmap.cc (Daniel Owen 2016-03-02 15:31:34 +0000 301) ") refers to a connection_t which is not a TapProducer. "
7c8aa164 src/tapconnmap.cc (Daniel Owen 2016-03-02 15:31:34 +0000 302) "Connection logHeader is '" + tc.get()->logHeader() + "'");
7c8aa164 src/tapconnmap.cc (Daniel Owen 2016-03-02 15:31:34 +0000 317) "TapConnMap::backfillQueueDepth: name (which is " + name +
7c8aa164 src/tapconnmap.cc (Daniel Owen 2016-03-02 15:31:34 +0000 318) ") refers to a connection_t which is not a TapProducer. "
7c8aa164 src/tapconnmap.cc (Daniel Owen 2016-03-02 15:31:34 +0000 319) "Connection logHeader is '" + tc.get()->logHeader() + "'");
7c8aa164 src/tapconnmap.cc (Daniel Owen 2016-03-02 15:31:34 +0000 400) session_stats.find("ep_force_shutdown");
7c8aa164 src/tapconnmap.h (Daniel Owen 2016-03-02 15:31:34 +0000 18) #pragma once
7c8aa164 src/tapconnmap.h (Daniel Owen 2016-03-02 15:31:34 +0000 19)
7c8aa164 src/tapconnmap.h (Daniel Owen 2016-03-02 15:31:34 +0000 20) #include "config.h"
7c8aa164 src/tapconnmap.h (Daniel Owen 2016-03-02 15:31:34 +0000 21)
7c8aa164 src/tapconnmap.h (Daniel Owen 2016-03-02 15:31:34 +0000 22) #include <climits>
7c8aa164 src/tapconnmap.h (Daniel Owen 2016-03-02 15:31:34 +0000 32) #include "connmap.h"
7c8aa164 src/tapconnmap.h (Daniel Owen 2016-03-02 15:31:34 +0000 33) #include "tapconnection.h"
7c8aa164 src/tapconnmap.h (Daniel Owen 2016-03-02 15:31:34 +0000 34) #include "atomicqueue.h"
7c8aa164 src/tapconnmap.h (Daniel Owen 2016-03-02 15:31:34 +0000 86) connToken(token), vbid(vb), implicitEnqueue(ie) {}
7c8aa164 src/tapconnmap.h (Daniel Owen 2016-03-02 15:31:34 +0000 226) "TapConnMap::performOp: name (which is " + name +
7c8aa164 src/tapconnmap.h (Daniel Owen 2016-03-02 15:31:34 +0000 227) ") refers to a connection_t which is not a TapProducer. "
7c8aa164 src/tapconnmap.h (Daniel Owen 2016-03-02 15:31:34 +0000 228) "Connection logHeader is '" + tc.get()->logHeader() + "'");
7c8aa164 src/warmup.cc (Daniel Owen 2016-03-02 15:31:34 +0000 34) #include "tapconnmap.h"
7c8aa164 tests/module_tests/dcp_test.cc (Daniel Owen 2016-03-02 15:31:34 +0000 19) #include "dcp/dcpconnmap.h"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment